package com.cust.yx.acl.service;

import com.cust.yx.model.acl.Permission;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

public interface PermissionService extends IService<Permission> {

    //查询所有菜单
    List<Permission> queryAllPermission();

    //递归删除菜单
    void removeChildById(Long id);

    //为角色进行权限分配
    void saveRolePermission(Long roleId, Long[] permissionIds);

    //根据角色获取菜单
    List<Permission> selectAllPermissionByRoleId(Long roleId);
}
